﻿namespace JudgeLeapYear
{
    internal class Program
    {
        public static bool Judge(int year)
        {
            if ((year % 4 == 0 && year % 100 != 0) || (year % 400 == 0)) { return false; }
            return true;
        }
        static void Main(string[] args)
        {
            int year;
            Console.WriteLine("输入年份");
            year = Convert.ToInt32(Console.ReadLine());
            if (!Judge(year)) { Console.WriteLine("闰年"); } else { Console.WriteLine("不是闰年"); }
        }
    }
}